# SumOfListComments.py # # Description: Returns the sum of the numbers in a list. # # NOTE: This algorithm is known as a “running sum” # # Anne Lavergne # Date: 6 Oct. 2023 def sumList(aList): """Returns the sum of the numbers in a list.""" # Initialize the accumulator variable to 0 # We use "0" because we are adding numbers # For each number of the list # Add the number to the accumulator (running sum) # Once done, return the result produced by this function: # the sum of all the numbers in the list return ... #*** Main part of my program # Create a list # Call sumList with this list as an argument # And print its result i.e., the sum of the numbers in this list